{% extends "smra_portal/portal_template.html" %}
{% block page_id %}home{% endblock %} 

{% block main %}

	{% if virts %}
	<div class="page_title">Collections</div>

	<table class="row_set">
   	{% for v  in  virts %}
   		<tr class="{% cycle 'row_odd' 'row_even' %}">
  			<td class="row_field">#{{v.pk}}</td>
   			<td class="row_field">{{ v.owned_by.user.username }} </td>
   			<td><a href={% url virtmeta v.pk %}>{{v.name}}</a></td>
  			<td class="row_field">{{v.description}}</td>
  		</tr>
   	{% endfor %}
	</table>
	{% endif %}

{% endblock %}

{% block messages %}	
	{% if virts %}
	{% else %}
		<div class="warning_message"><span>No Public Collections found!</span></div>
	{% endif %}
{% endblock %}
